package com.heima.wemedia.controller.v1;

import com.heima.common.dtos.ResponseResult;
import com.heima.model.comment.dtos.CommentLikeDto;
import com.heima.model.comment.dtos.WmCommentLikeDto;
import com.heima.wemedia.service.WmCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 评论点赞微服务
 * @Author: Xu
 * @Date: 2022/01/05/20:57
 */
@RestController
@RequestMapping("/api/v1/comment")
public class WmCommentLikeController {
    @Autowired
    private WmCommentService wmCommentService;

    /**
     * 文章点赞微服务
     * @param dto
     * @return
     */
    @PostMapping("like")
    public ResponseResult getCommentLike(@RequestBody CommentLikeDto dto){
           return  wmCommentService.getCommentLike(dto);

    }
}
